/**  

* @Title: Navigation.java 

* @Package com.gxbadge.model 

* @Description: TODO(用一句话描述该文件做什么) 

* @author CST

* @version V1.0  

*/ 

package com.gxbadge.model;

import java.io.Serializable;

public class Navigation implements Serializable {

	private static final long serialVersionUID = -834877174079961617L;
	private Integer navId;
	private String title;
	private Integer navPid;
	private String url;
	private String note;
	private Byte levFlag;
	
	private Language lang;
	public Integer getNavId() {
		return navId;
	}
	public void setNavId(Integer navId) {
		this.navId = navId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Integer getNavPid() {
		return navPid;
	}
	public void setNavPid(Integer navPid) {
		this.navPid = navPid;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Byte getLevFlag() {
		return levFlag;
	}
	public void setLevFlag(Byte levFlag) {
		this.levFlag = levFlag;
	}
	public Language getLang() {
		return lang;
	}
	public void setLang(Language lang) {
		this.lang = lang;
	}
	
	public Navigation(){
		
	}
	public Navigation(Integer navId, String title, Integer navPid, String url, String note, Language lang) {
		super();
		this.navId = navId;
		this.title = title;
		this.navPid = navPid;
		this.url = url;
		this.note = note;
		this.lang = lang;
	}
	
	public boolean equals(Object obj){
		
		if (this == obj){
			return true;
		}
		if (obj != null && obj.getClass() == Navigation.class){
			Navigation nav = (Navigation)obj;
			return this.getNavId().equals(nav.getNavId()) && this.getTitle().equals(nav.getTitle()) && this.getNavPid().equals(nav.getNavPid());
		}
		return false;
		
		
	}
	
	public int hashcode(){
		
		return this.getNavId().hashCode()+this.getTitle().hashCode()+this.getNavPid().hashCode();
		
	}
	
	public String toString(){
		
		return this.getNavId().toString()+this.getTitle().toString()+this.getNavPid().toString();

	}
	
	
	
}
